Skip to content

VirtualTimeSchedulerBase.Sleep(TRelative) method

Defined in

Type: VirtualTimeSchedulerBase Namespace: System.Reactive.Concurrency Assembly: System.Reactive.dll

Applies to

netstandard2.0

public void Sleep(TRelative time)

Summary: Advances the scheduler's clock by the specified relative time.

Parameters

NameTypeDescription
timeTRelativeRelative time to advance the scheduler's clock by.

Exceptions

TypeCondition
System.ArgumentOutOfRangeExceptiontime is negative.